package com.qf.cloud2203.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author ada
 * @since 2023-03-10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableField(value = "couponId")
    private String couponId;

    private Double price;

    private String scope;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date valid;

    private Integer state;


}
